package com.slj.authorization_resource_server.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/resource")
public class ResourceController {
    @GetMapping("")
    public ResponseEntity<Map<String, String>> getAll() {
        Map<String, String> result = new HashMap<>();
        result.put("data", "hello");
        return ResponseEntity.ok(result);
    }
}
